package com.dsg.entity.oil;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 油站设置
 * </p>
 *
 * @author system
 * @since 2020-07-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("dsg_oil_station")
@ApiModel(value = "DsgOilStation对象", description = "油站设置")
public class DsgOilStation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId("OID")
    private String oid;

    @ApiModelProperty(value = "油公司")
    @TableField("OIL_COM")
    private String oilCom;

    @ApiModelProperty(value = "油站ID")
    @TableField("STATION_ID")
    private String stationId;

    @ApiModelProperty(value = "油站名")
    @TableField("STATION_NAME")
    private String stationName;

    @ApiModelProperty(value = "油站地区")
    @TableField("STATION_AREA")
    private String stationArea;

    @ApiModelProperty(value = "状态")
    @TableField("STATION_STATUS")
    private Integer stationStatus;

    @ApiModelProperty(value = "企業編號")
    @TableField("ENT_CODE")
    private String entCode;

    @ApiModelProperty(value = "创建人")
    @TableField("CREATER")
    private String creater;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATE_TIME")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField("UPDATER")
    private String updater;

    @ApiModelProperty(value = "更新时间")
    @TableField("UPDATE_TIME")
    private Date updateTime;

    /************************枚舉**********************/
    public enum AppStatus {
        cancel(0), takeEffect(1);
        Integer code;

        AppStatus(int code) {
            this.code = code;
        }

        public Integer getCode() {
            return code;
        }
    }
}
